<?

$min_people = $_POST['min_people'];
$max_people = $_POST['max_people'];
$min_time = $_POST['min_time'];
$max_time = $_POST['max_time'];
$longitude = $_POST['longitude'];
$latitude = $_POST['latitude'];

$loc = 0;
if($longitude || $latitude) {
	$loc = 1;
}

$name = $db->escape_string($_POST['name']);
$desc = $db->escape_string($_POST['description']);

check_numbers(array($min_people, $max_people, $min_time, $max_time, $longitude, $latitude));

$db->exec("INSERT INTO activities(");

?>